﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace craigsPack
{
    public class CraigsListItemInfo : IItemInfo
    {
        private readonly int price;
        private readonly int phone;

        private readonly Uri link;

        private readonly string seller;
        private readonly string city;
        private readonly string state;
        private readonly string email;
        private readonly WeakDate datePosted;

        internal CraigsListItemInfo(int price,int phone,Uri link,string seller,string city,string state,string email,WeakDate datePosted)
        {
            this.price = price;
            this.phone = phone;
            this.link = link;
            this.seller = seller;
            this.city = city;
            this.state = state;
            this.email = email;
            this.datePosted = datePosted;
        }

        public int Price
        {
            get { return price; }
        }

        public int PhoneNumber
        {
            get { return phone; }
        }

        public Uri Link
        {
            get { return link; }
        }

        public string Seller
        {
            get { return seller; }
        }

        public string City
        {
            get { return city; }
        }

        public string State
        {
            get { return state; }
        }

        public string Email
        {
            get { return email; }
        }


        public WeakDate DatePosted
        {
            get { return datePosted; }
        }
    }
}
